package team.you.change.util;

import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.UUID;

/**
 * MD5 密码加密
 */
public class Md5Util {

    public static String encryption(String username, String password) {
        Md5Hash md5Hash = new Md5Hash(password,username,1000); //hashlterations:加密次数
        String s = md5Hash.toString();
        return s;
    }
    //管理员账号生成
//    public static void main(String[] args) {
//        String uuid = UUID.randomUUID().toString();
//        String pwd = Md5Util.encryption("甘雨莫娜","123456abc");
//        System.out.println(pwd + ":" + uuid);
//    }
}
